/**
 * @author mithun
 */

Event.observe(window, 'load' , function (event){
	
	toggleImportFromTemplate($('RouteScheduleRouteScheduleImport'));
	
});

var toggleImportFromTemplate = function(el){
	
	if(el.value == 0){
		$('RouteScheduleRouteId').up().up().show();
		$('RouteScheduleRouteScheduleStartDay').up().up().show();
		$('RouteScheduleImportMediaPlan').up().up().hide();
	} else {
		$('RouteScheduleRouteId').up().up().hide();
		$('RouteScheduleRouteScheduleStartDay').up().up().hide();
		$('RouteScheduleImportMediaPlan').up().up().show();
	}
	
}